package org.osami.gateway.profile;

import java.util.Collection;

/**
 * Created by IntelliJ IDEA.
 * User: guillaume
 * Date: 14 juin 2010
 * Time: 09:22:10
 * To change this template use File | Settings | File Templates.
 */
public interface IProfileService {

    /**
     * Set a value to a given parameter
     * @param name parameter's name
     * @param value parameter's value (as a String). This is the
     *        implementation duty to convert it to the underlying required type (int, ...)
     * @return the old value
     */
    String setParameter(String name, String value);

    /**
     * Return a given parameter' value (as a String).
     * @param name parameter's name
     * @return current parameter's value
     */
    String getParameter(String name);


    /**
     * Return the list of understood parameters.
     * @return list of understood parameters
     */
    Collection<String> getParameters();
}
